# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='TbFirstRunning',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)),
                ('controller', models.CharField(db_column='Controller', db_index=True, max_length=255)),
                ('red', models.CharField(db_column='Red', max_length=255)),
                ('green', models.CharField(db_column='Green', max_length=255)),
                ('yellow', models.CharField(db_column='Yellow', max_length=255)),
                ('in_time', models.DateTimeField(db_index=True)),
            ],
            options={
                'managed': False,
                'db_table': 'tb_first_running',
            },
        ),
        migrations.CreateModel(
            name='TbFirstTh',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)),
                ('controller', models.CharField(db_column='Controller', max_length=255)),
                ('tem', models.CharField(db_column='Tem', max_length=255)),
                ('hum', models.CharField(db_column='Hum', max_length=255)),
                ('in_time', models.DateTimeField()),
            ],
            options={
                'managed': False,
                'db_table': 'tb_first_th',
            },
        ),
        migrations.CreateModel(
            name='TbFirstWatt',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)),
                ('gateway', models.CharField(db_column='Gateway', max_length=255)),
                ('sensortype', models.CharField(db_column='SensorType', max_length=255)),
                ('port', models.CharField(db_column='Port', max_length=255)),
                ('voltage', models.CharField(db_column='Voltage', max_length=255)),
                ('a_voltage', models.FloatField(db_column='a_Voltage', blank=True, null=True)),
                ('b_voltage', models.FloatField(db_column='b_Voltage', blank=True, null=True)),
                ('c_voltage', models.FloatField(db_column='c_Voltage', blank=True, null=True)),
                ('current', models.CharField(db_column='Current', max_length=255)),
                ('a_current', models.FloatField(db_column='a_Current', blank=True, null=True)),
                ('b_current', models.FloatField(db_column='b_Current', blank=True, null=True)),
                ('c_current', models.FloatField(db_column='c_Current', blank=True, null=True)),
                ('power', models.CharField(db_column='Power', max_length=255)),
                ('a_power', models.FloatField(db_column='a_Power', blank=True, null=True)),
                ('b_power', models.FloatField(db_column='b_Power', blank=True, null=True)),
                ('c_power', models.FloatField(db_column='c_Power', blank=True, null=True)),
                ('t_power', models.FloatField(db_column='t_Power', blank=True, null=True)),
                ('energy', models.CharField(db_column='Energy', max_length=255)),
                ('j_energy', models.FloatField(db_column='j_Energy', blank=True, null=True)),
                ('in_time', models.DateTimeField()),
            ],
            options={
                'managed': False,
                'db_table': 'tb_first_watt',
            },
        ),
        migrations.CreateModel(
            name='UnmState',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)),
                ('controller', models.CharField(db_column='Controller', max_length=255)),
                ('state', models.CharField(max_length=255)),
                ('start_time', models.DateTimeField()),
                ('last_time', models.DateTimeField()),
            ],
            options={
                'managed': False,
                'db_table': 'unm_state',
            },
        ),
    ]
